					<div class="cat_page_left_list">
						<?php
						//pr($Category);
                        if(isset($Category) and ($Category))
                        {
                        ?>
						<span>Browse <?php if(isset($Category)){echo $Category['Category']['name'];} ?></span>
						
							<?php
							if(isset($subcats) and ($subcats))
							{
								?>
                                <ul>
							<li><b>Shop by Category</b></li>
                                <?php
								$i=0;
							foreach($subcats as $subcat)
								{
									if($i<10)
									{
									?>
									 <li> <?php echo $html->link($subcat['Category']['name'], 
						   array('controller'=>'products', 'action'=>'index','parent_cat_slug'=>$cat_slug, $subcat['Category']['slug'])); ?></li>
									<?php
									}
									$i++;
								}
							?>
						</ul>
						<?php
							}
                        }
                        ?>

						<?php
                            if(isset($departments) and ($departments))
                                {
                                ?>
                            <ul>
                                <li><b>Shop by Styles</b></li>
                                <?php
                                foreach($departments as $depart)
                                    {
                                        ?>
                                         <li> <?php echo $html->link($depart['Department']['name'], 
                               array('controller'=>'products', 'action'=>'DeptProducts', 'category_slug'=>$cat_slug, $depart['Department']['slug'])); ?></li>
                                        <?php
                                    }
                                ?>
                            </ul>
                                <?php
                                }
                            ?>
						<?php
                            if(isset($custum_brands) and ($custum_brands))
                                {
                                ?>
                                <ul>
                                    <li><b>Shop by Brands</b></li>
                                    <?php
											if(isset($subcats) and ($subcats))
											{
												$i=0;
											foreach($subcats as $subcat)
												{
													if($i<10)
													{
													?>
                                                    <li> 
													<?php 
													echo $html->link('All '.$subcat['Category']['name'].' Brands', 
                                                    array('controller'=>'brands', 'action'=>'brand',
													  $subcat['Category']['slug']));
													 ?>
                                                     </li>
													<?php
													}
													$i++;
												}
											}
									
                                    foreach($custum_brands as $custum_brand)
                                        {
                                            //pr($custum_brand);
                                            //exit;
                                            ?>
                                             <li> <?php 	
                                             echo $html->link($custum_brand['Brand']['name'], 
                array('controller'=>'products', 'action'=>'index',
                 "category_slug"=>$cat_slug,  "index"=>"","brand_slug"=>$custum_brand['Brand']['slug']), array('class'=>''));
    ?></li>
                                            <?php
                                        }
                                    ?>
                                </ul>
                                <?php
                                }
                            ?>
                            <?php
								if(isset($cat_slug) and ($cat_slug))
								{
							?>
                                       <ul>
                                       <li><b>Shop by Price</b></li>
                                        <li>
                                         <?php 	
                                                echo $html->link('Under $100', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"less_100"), array('class'=>''));
                                        ?>
                                       </li>
                                        <li>
                                         <?php 	
                                                echo $html->link('$100 to $199', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"100_199"), array('class'=>''));
                                        ?>
            
                                     </li>
                                        <li>
                                         <?php 	
                                                echo $html->link('$200 to $499', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"200_499"), array('class'=>''));
                                        ?>
            
                                       </li>
                                        <li>
                                        
                                         <?php 	
                                                echo $html->link('$500 to $999', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"500_999"), array('class'=>''));
                                        ?>
            
                                      </li>
                                        <li>
                                         <?php 	
                                                echo $html->link('$1,000 to $1,999', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"1000_1999"), array('class'=>''));
                                        ?>
                                        
                                       </li>
                                        <li>
                                         <?php 	
                                                echo $html->link('$2,000 to $4,999', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"2000_4999"), array('class'=>''));
                                        ?>
                                      </li>
                                        <li>
                                     <?php 	
                                                echo $html->link('Over $5,000', 
                                                array('controller'=>'products', 'action'=>'index',
                                                "category_slug"=>$cat_slug,"price"=>"over_5000"), array('class'=>''));
                                        ?>
                                    </li>
                                       </ul> 
                           <?php
								}
							?>
                            
					</div>
			
